<div class="layui-row">
    <?php echo builderFormInit([
        'title' => '商品名称',
        'name' => 'title',
        'value' => !empty($info) ? $info->title : '',
        'md' => 12
    ])->getFormItemInputHtml();?>

    <!-- 引入分类  -->
    {include file="product/cope/cate" /}
    <!-- 引入分类End -->

    <?php echo builderFormInit([
        'title' => '轮播图',
        'name' => 'images',
        'value' => !empty($info) ? $info->images : '',
        'md' => 12,
        'remark' => '建议尺寸：800*800，默认首张图为主图，最多上传10张，拖动图片可排序'
    ])->getFormItemImgHtml(10);?>

    <?php echo builderFormInit([
        'title' => '排序',
        'name' => 'sort',
        'value' => !empty($info) ? $info->sort : '',
        'md' => 12
    ])->getFormItemInputHtml('number');?>

    <?php echo builderFormInit([
        'title' => '运费',
        'name' => 'freight',
        'value' => !empty($info) ? $info->freight : '',
        'md' => 12
    ])->getFormItemInputHtml('number');?>

    <?php echo builderFormInit([
        'title' => '虚拟销量',
        'name' => 'virtual_sales',
        'value' => !empty($info) ? $info->virtual_sales : '',
        'md' => 12,
        'remark' => '如若填写，前台销量将展示虚拟销量+实际销量'
    ])->getFormItemInputHtml('number');?>

</div>